function getToken(){
    return  window.localStorage.getItem("token");
}

function setToken(token){
    window.localStorage.setItem("token",token);
}
function clearItem(key){
    window.localStorage.removeItem(key);
}
function clearToken(){
    window.localStorage.removeItem("token");
}
function setItem(key, value){
    window.localStorage.setItem(key, value);
}
function getItem(key) {
    return window.localStorage.getItem(key);
}
export {getToken,setToken,clearToken,setItem,getItem,clearItem};